package com.dream.mqpushserver.netty;

/**
 * 1 + 4 + length
 */
public class Request {

    /**
     * 请求类型
     * 1 注册
     * 2 http
     */
    private byte type;

    /**
     * 内容长度
     */
    private int length;

    /**
     * 内容
     */
    private String content;

    @Override
    public String toString() {
        return "Request{" +
                "type=" + type +
                ", length=" + length +
                ", content='" + content + '\'' +
                '}';
    }

    public byte getType() {
        return type;
    }

    public void setType(byte type) {
        this.type = type;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
